try{
	Type.registerNamespace('PickmHeadVO');	
	//备料计划表头
	PickmHeadVO = function(){};
	PickmHeadVO.prototype = new NCMMPubUtil.SuperVO();
	PickmHeadVO.PK_H={
		name:"pk_h", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//备料计划单号
	PickmHeadVO.VBILLCODEPICKM={
		name:"vbillcodepickm", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//单位
	PickmHeadVO.CASSMEASUREID={
		name:"cassmeasureid", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//单位编码
	PickmHeadVO.VASSMEASURECODE={
		name:"vassmeasurecode", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//单位名称
	PickmHeadVO.VASSMEASURENAME={
		name:"vassmeasurename", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//主单位
	PickmHeadVO.CMEASUREID={
		name:"cmeasureid", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//单位名称
	PickmHeadVO.VMEASURENAME={
		name:"vmeasurename", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//单位编码
	PickmHeadVO.VMEASURECODE={
		name:"vmeasurecode", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	
	PickmHeadVO.PK_ORG={
		name:"pk_org", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	PickmHeadVO.DR={
		name:"dr", type:NCMMPubUtil.VALUE_TYPE_INTEGER
	};

	PickmHeadVO.PK_GROUP={
		name:"pk_group", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//对应生产模式
	PickmHeadVO.VBILLTYPE={
		name:"vbilltype", type:NCMMPubUtil.VALUE_TYPE_INTEGER
	};
	// 对应 csourcebillrowid
	PickmHeadVO.PK_MO_B={
		name:"pk_mo_b", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//来源生产订单
	PickmHeadVO.PK_MO={
		name:"pk_mo", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//生产订单号
	PickmHeadVO.VBILLCODEMO={
		name:"vbillcodemo", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//制单日期
	PickmHeadVO.DBILLDATEMO={
		name:"dbilldatemo", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//vsourcemorowcode 来源生产订单行号
	PickmHeadVO.VROWNO={
		name:"vrowno", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	//用料部门最新版本
	PickmHeadVO.CDEPTID={
		name:"cdeptid", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};	
	//产品pk
	PickmHeadVO.CINVID={
		name:"cinvid", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
		//产品编码
	PickmHeadVO.VINVCODE={
		name:"vinvcode", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
		//产品名称
	PickmHeadVO.VINVNAME={
		name:"vinvname", type:NCMMPubUtil.VALUE_TYPE_TEXT
	};
	


	PickmHeadVO.prototype.getAllAttrs = function(){
		return [PickmHeadVO.PK_H,
				PickmHeadVO.VBILLCODEPICKM，
				PickmHeadVO.CASSMEASUREID，
				PickmHeadVO.VASSMEASURECODE，
				PickmHeadVO.VASSMEASURENAME，
				PickmHeadVO.CMEASUREID，
				PickmHeadVO.VMEASURENAME，
				PickmHeadVO.VMEASURECODE，
				PickmHeadVO.PK_ORG，
				PickmHeadVO.DR，
				PickmHeadVO.PK_GROUP，
				PickmHeadVO.VBILLTYPE，
				PickmHeadVO.PK_MO_B，
				PickmHeadVO.PK_MO，
				PickmHeadVO.VBILLCODEMO,
				PickmHeadVO.DBILLDATEMO，
				PickmHeadVO.VROWNO，
				PickmHeadVO.CDEPTID，
				PickmHeadVO.CINVID，
				PickmHeadVO.VINVCODE，
				PickmHeadVO.VINVNAME				
				];
	};
	PickmHeadVO.prototype.getTableName = function(){
		return "app_mm_pickm";
	};
	PickmHeadVO.prototype.getPrimaryAttr = function(){
		return PickmHeadVO.PK_H;
	};				
	
}catch(e){$e(e);}